package net.sxnic.workflow.chart;

/**
 * 流程查看 图形显示 jsPlumb实现
 * @author 孙宇飞
 *
 */
public class PlumbChartNode {
	
	private String id;
	
	private String prcs_id;
	
	private String title;
	
	private String prcs_content;
	
	private long left;
	
	private long top;
	
	private String prcs_type;
	
	private String to;

	public PlumbChartNode() {
		super();
	}
	
	public String toJson(){
		StringBuffer sb = new StringBuffer();	
		sb.append("{");
		sb.append("\"id\"=\""+id+"\",");
		sb.append("\"procs_id\"=\""+prcs_id+"\",");
		sb.append("\"title\"=\""+title+"\",");
		sb.append("\"prcs_content\"=\""+prcs_content+"\",");
		sb.append("\"left\"="+left+",");
		sb.append("\"top\"="+top+",");
		sb.append("\"prcs_type\"=\""+prcs_type+"\",");
		sb.append("\"to\"=\""+to+"\",");
		sb.append("}");
		
		return sb.toString();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPrcs_id() {
		return prcs_id;
	}

	public void setPrcs_id(String prcs_id) {
		this.prcs_id = prcs_id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPrcs_content() {
		return prcs_content;
	}

	public void setPrcs_content(String prcs_content) {
		this.prcs_content = prcs_content;
	}

	public long getLeft() {
		return left;
	}

	public void setLeft(long left) {
		this.left = left;
	}

	public long getTop() {
		return top;
	}

	public void setTop(long top) {
		this.top = top;
	}

	public String getPrcs_type() {
		return prcs_type;
	}

	public void setPrcs_type(String prcs_type) {
		this.prcs_type = prcs_type;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}
	
	
}
